﻿using HslCommunication;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NetCore8Demo.BusinessData
{
    /// <summary>
    /// 常用的可以复制的方法
    /// </summary>
    public class CopyDemo
    {
        CommonTool _commonTool = new CommonTool();


        //发送串口数据，并接收返回值
        public void SerialPortSendData()
        {
            OperateResult<string> operateResult = _commonTool.SerialPortSendData(SerialPortName.测高光栅, "sss");
            if (operateResult.IsSuccess)
            {
                MessageBox.Show(operateResult.Content);
            }
            else
            {
                MessageBox.Show(operateResult.Message);
            }
        }



        


    }
}
